import itertools

letters = ['a', 'b', 'c', 'd']

combinations = itertools.combinations(letters, 2)

for combination in combinations:
    print(combination)